package cn.iocoder.yudao.module.mbti.controller.admin.mbti.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * mbti类型 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class MbtiBaseVO {

    @Schema(description = "英文名称", example = "INTJ")
    private String mbtiEnglishName;

    @Schema(description = "中文名称", example = "建筑型")
    private String mbtiChineseName;

    @Schema(description = "mbti简单人格分析", example = "思考型")
    private String mbtiAnalysis;

    @Schema(description = "该mbti人格在本系统中的累计数量", example = "100")
    private Integer userTotal;

    @Schema(description = "备注", example = "随便备注")
    private String remark;

    @Schema(description = "创建者", example = "12")
    private String creator;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "创建时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTime;

    @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "更新者不能为空")
    private String updater;

    @Schema(description = "更新时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "更新时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime updateTime;

    @Schema(description = "是否删除（1删除，0未删除）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否删除（1删除，0未删除）不能为空")
    private Boolean deleted;

    @Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "租户编号不能为空")
    private Long tenantId;

}
